package com.adou.d10;

import java.util.Locale;
import java.util.function.Consumer;

public class AddThenTest {
    public static void method(String s, Consumer<String> con1, Consumer<String> con2) {
        con1.accept(s);
        con2.accept(s);
    }

    public static void main(String[] args) {
        method("hello",
                (t)->{System.out.println(t.toUpperCase());},
                (t)->{System.out.println(t.toLowerCase());}
        );
    }
}
